﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UpLoadConsoleApplication
{
    public partial class DialogForm : Form
    {
        private string _SN;
        public DialogForm()
        {
            InitializeComponent();
        }

        public DialogForm(string SN)
        {
            _SN = SN;
            InitializeComponent();
        }

        private void DialogForm_Load(object sender, EventArgs e)
        {
            if (_SN != null)
            {
                if (_SN.Length > 36)
                {
                    string[] _strArr = _SN.Split('_');
                    _SN = _strArr[1];
                }
                DataAction.DownLandFile(_SN, this.progressBar2, this.label2,this.label3);
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            this.Close();
        }
    }
}
